import 'package:json_annotation/json_annotation.dart';

part 'GetChatGroupDetailResultData.g.dart';

@JsonSerializable()
class GetChatGroupDetailResultData {
  int? id;

  int? code;

  int? managerUserId;

  DateTime? createTime;

  String? name;

  List<GetChatGroupDetailResultDataChatGroupUserItem>? chatGroupUserItemList;

  static GetChatGroupDetailResultData fromJson(Map<String, dynamic> json) {
    return _$GetChatGroupDetailResultDataFromJson(json);
  }

  @override
  String toString() {
    return 'GetChatGroupDetailResultData{id: $id, code: $code, managerUserId: $managerUserId, createTime: $createTime, name: $name, chatGroupUserItemList: $chatGroupUserItemList}';
  }
}

@JsonSerializable()
class GetChatGroupDetailResultDataChatGroupUserItem {
  int? id;

  String? code;

  String? nickname;

  String? phone;

  String? headPortrait;

  String? headPortraitStoreType;

  static GetChatGroupDetailResultDataChatGroupUserItem fromJson(
      Map<String, dynamic> json) {
    return _$GetChatGroupDetailResultDataChatGroupUserItemFromJson(json);
  }

  @override
  String toString() {
    return 'GetChatGroupDetailResultDataChatGroupUserItem{id: $id, code: $code, nickname: $nickname, phone: $phone, headPortrait: $headPortrait, headPortraitStoreType: $headPortraitStoreType}';
  }
}
